repo: Display estimated time remaining when pulling
authorSam Spilsbury <smspillaz@gmail.com>
Wed, 1 Jun 2016 08:15:00 +0000 (08:15 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 1 Jun 2016 14:09:41 +0000 (14:09 +0000)
commita189b19fd000f83b2bbd065e0dd47ee18f5c3f50
tree7e259c7d505634997c56aca6682856dcfbaecff5
parent24cb0ffc6a3711179b34f95a54c12e839b88d43b
repo: Display estimated time remaining when pulling

Bug 765429 said that not having a time estimate can be annoying
when working with large pulls.

There isn't any complex time estimation logic here - we just take
the number of bytes remaining and do a linear projection of
the bytes per second rate at the current point in time.

Closes: #318
Approved by: cgwalters
src/libostree/ostree-repo.c